import 'package:flutter/material.dart';
import 'package:flutter/services.dart';


class ListViewPage extends StatelessWidget {
  final SystemUiOverlayStyle _style = SystemUiOverlayStyle(statusBarColor: Colors.transparent);
  @override
  Widget build(BuildContext context) {
    SystemChrome.setSystemUIOverlayStyle(_style);
    // TODO: implement build
    return MaterialApp(
      home: ListViewWidget(),
      theme: ThemeData(primarySwatch: Colors.yellow),
    );
  }
}

class ListViewWidget extends StatefulWidget {
  @override
  State<StatefulWidget> createState() {
    // TODO: implement createState
    return _ListViewPage();
  }
}

class _ListViewPage extends State<StatefulWidget> {

  @override
  Widget build(BuildContext context) {
    // TODO: implement build
    return Scaffold(
      appBar: AppBar(
        title: Text("ListView Page"),
      ),
      body: Column(
        children: <Widget>[
          ListTile(title: Text("固定表头"),
          ),
          Container(
            height: 500,
            child: ListView.builder(
                itemCount: 50,
                itemExtent: 30,
                itemBuilder: (BuildContext context,int index){
                  return Text("(BuildContext context,int index) $index");
                }
            ),
          )
        ],
      ),
    );
  }
}